import re


tmp = []
with open('tmp.txt', 'r') as f:
    tmp = f.readlines()

ips = []
for t in tmp:
    try:
        res = re.findall(r".*addr (.*)", t)[0]
    except:
        continue
    ips.append(res)

for i in range(len(ips)-1):
    if ':' in ips[i]:
        print(f"ipv6.addr=={ips[i]}||", end='')
    else:
        print(f"ip.addr=={ips[i]}||", end='')
if ':' in ips[-1]:
    print(f"ipv6.addr=={ips[-1]}")
else:
    print(f"ip.addr=={ips[-1]}")

